package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.NavBarDao;
import com.easyweb.model.NavBar;
import com.easyweb.service.NavBarService;

@Service
public class NavBarServiceImpl implements NavBarService{
	
	@Autowired
	private NavBarDao navBarDao;

	public int insertNavBar(NavBar navBar) {
		return navBarDao.insertNavBar(navBar);
	}

	public int deleteNavBarById(Map<String, Object> map) {
		return navBarDao.deleteNavBarById(map);
	}

	public int updateNavBar(NavBar navBar) {
		return navBarDao.updateNavBar(navBar);
	}

	public List<NavBar> getNavBars(Map<String, Object> map) {
		return navBarDao.getNavBars(map);
	}

	public NavBar getNavBarById(Map<String, Object> map) {
		return navBarDao.getNavBarById(map);
	}

	public int getNavBarCount(Map<String, Object> map) {
		return navBarDao.getNavBarCount(map);
	}

	public int selectMaxSortNum() {
		return navBarDao.selectMaxSortNum();
	}

}
